package com.xiaobaibai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobaibai.bo.EvaluationSelect;
import com.xiaobaibai.dao.ProductEvaluationDao;
import com.xiaobaibai.entity.ProductEvaluation;
import com.xiaobaibai.response.ResponseFormat;
import com.xiaobaibai.service.IProductEvaluationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-27
 */
@Service
public class ProductEvaluationServiceImpl extends ServiceImpl<ProductEvaluationDao, ProductEvaluation> implements IProductEvaluationService {

    @Override
    public List<ProductEvaluation> getEvaluationList(EvaluationSelect evaluationSelect) {
        evaluationSelect.setPageNum(evaluationSelect.getPageNum()*evaluationSelect.getPageSize());
        List<ProductEvaluation> evaluationList = this.baseMapper.getEvaluationList(evaluationSelect);

        return evaluationList;
    }

}
